package com.dems.core.enumerate;

/**
 * 响应编码信息
 */
public enum ResEnum {

    SUCCESS(1000, "SUCCESS"),

    AUTH_ERROR(2000, "授权失败，请重新登录！"),

    USER_TYPE_ERROR(2100, "用户角色异常！"),

    USER_INFO_ERROR(2100, "用户信息不正确！"),

    SIP_INFO_ERROR(2200, "外呼系统登录异常！"),

    PROCESSING(3000, "业务处理中，请稍后重试！"),

    DUP_DATA(3100, "数据信息重复，请核实！"),

    REPORT_ERROR(4000, "报告异常"),

    ACCOUNT_ERROR(5000, "结算账户异常，请稍后重试"),

    PHASE_ERROR(6000, "状态异常，请检查"),

    ERROR(9999, "系统异常，请稍后重试！"),
    ;

    private int code;

    private String msg;

    ResEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
